/*
 * calculator.h
 *
 *  Created on: Mar 7, 2013
 *      Author: abrahamsantini
 */

#ifndef CALCULATOR_H_
#define CALCULATOR_H_
#include "semaphore.h"
#include "sharedMemory.h"

//#include "process.h"




typedef struct {
	sharedMemory_t *sm;
	int my_value;
	int next_instr;
	int num_of_cycles;
}calculator_t;

int init_calc(calculator_t *calc, sharedMemory_t *the_sm);
//int init_process(process_t *proc, calculator_t *calc);


#endif /* CALCULATOR_H_ */
